package com.zHan.system.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zHan.model.dto.AssginDeptDto;
import com.zHan.model.system.SysDept;

import java.util.List;

/**
 * <p>
 * 组织机构 服务类
 * </p>
 *
 * @author zHan
 * @since 2023-06-24
 */
public interface ISysDeptService extends IService<SysDept> {

    List<SysDept> selectNodes();

    boolean removeDeptById(Long id);

    boolean batchRemoveDept(List<Long> ids);

    List<SysDept> selectNodesById(String id);

    boolean assignDeptToUser(AssginDeptDto assginDeptDto);

    List<SysDept> selectDeptsByUserId(String userId);

    boolean saveDept(SysDept sysDept);

    boolean updateStatus(Long id, Integer status);
}
